package vg.services.graph_view_manager.realization.graph_view.smart_graph_view.realization.patches;

import vg.services.graph_view_manager.realization.graph_view.smart_graph_view.interfaces.ISGVPatch;
import vg.services.progress_manager.interfaces.IProgressTask;
import vg.services.progress_manager.realization.DefaultProgressTask;

/**
 * It's default patch for writing other patches. 
 * @author Timur Zolotuhin (e-mail: tzolotuhin@gmail.com)
 */

public abstract class DefaultPatch implements ISGVPatch {
	protected final DefaultProgressTask progress;	
	protected Object result = null;
	
	/**
	 * Constructor.
	 */
	public DefaultPatch(String patchName) {
		progress = new DefaultProgressTask(patchName);
	}
		
	public Object getResult() {
		return result;
	}
	
	@Override
	public IProgressTask getProgressTask() {
		return progress;
	}
}
